#include <iostream>
using namespace std;
int main()
{
	int a,b,c,i,mem=1;
	int max,min;
	int max_t(int,int,int);
	int min_t(int,int,int);
	cin>>a>>b>>c;
	if (a>=1 && a<=10000000000 && b>=1 && b<=10000000000 && c>=1 && c<=10000000000 && a!=b && a!=c && b!=c)
	{
	 max = max_t(a,b,c);
	 min = min_t(a,b,c);
	 for (i=1;i<=min;i++)
	 {
		 if (max%i==0 && min%i==0)
		 {
				mem = i;
		 }
	 }
	 max = max/mem;
	 min = min/mem;
	 cout<<min<<"/"<<max<<endl;
    }
    else cout<<"Break!"<<endl;
	return 0;
}

int max_t(int x,int y,int m)
{
	int t;
	t = x>y ?x : y;
	t = t>m ?t : m;
	return t;
}

int min_t(int x,int y,int m)
{
	int g;
	g = x<y ?x : y;
	g = g<m ?g : m;
	return g;
}
